package Test.Controller;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

import Test.Service.TestService;
import Test.Service.Impl.TestServiceImpl;

public class TestController extends MultiActionController {
	
	protected TestService testService;
	


	public TestService getTestService() {
		return testService;
	}



	public void setTestService(TestService testService) {
		this.testService = testService;
	}



	public ModelAndView list(HttpServletRequest req, HttpServletResponse res) throws Exception{
		ModelAndView mav = new ModelAndView();
		List list = new ArrayList();
		list = testService.getTest();
		mav.addObject("list",list);
		mav.setViewName("test/test");
		return mav;
	}

}
